package com.example.mongologistics.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.util.Date;
@ApiModel(value =  "物流对象")
@Data
@NoArgsConstructor
@AllArgsConstructor
@ToString
public class Logistics {
    @ApiModelProperty("订单id")
    private int orderId; //订单id
    @ApiModelProperty("订单操作节点")
    private String operation;  //订单操作节点
    @ApiModelProperty("操作员")
    private String operator;  //操作员
    @ApiModelProperty("操作员联系方式")
    private long phone; // 操作员联系方式
    @ApiModelProperty("操作时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm",timezone = "GMT+8")
    private Date operationTime;  //操作时间
    @ApiModelProperty("地址")
    private String address;  //地址
    @ApiModelProperty("细节")
    private String details;  //细节

}
